package com.seventh.parkingrent.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.seventh.parkingrent.controller.form.RentMessageForm;
import com.seventh.parkingrent.domain.ParkingSpace;
import com.seventh.parkingrent.domain.RentMessage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单详情记录表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-08-24
 */
public interface IRentMessageService extends IService<RentMessage> {

    List<RentMessage> getRentByPSId(List<ParkingSpace> parkingSpaceList);

    List<RentMessage> getAllNotRent();

    boolean updateStatusById(Integer id, Integer tenantryid);

    boolean getStatusById(Integer id);

    void okStatusById(Integer id);

    List<RentMessage> selectRentByPSId(Integer id);

    Integer addOrder(RentMessage rentMessage);

    boolean okStatusAndtenantryId(Integer id, Integer tenantryid);


    public IPage<RentMessageForm> findRent(int lessorId,int pageSize, int current);


    List<RentMessage> getallleaseByid(Integer userid);
    RentMessage getRentById(Integer rentid);
    List<RentMessage> findOrderTime(int spacingSpaceId);


    public boolean deleteRow(int rentMessageId);


    List<RentMessageForm>  findById(int rentMessageId);
}
